﻿using System;
namespace Golf.Model
{
	/// <summary>
	/// Golf_Coupons:实体类(属性说明自动提取数据库字段的描述信息)
	/// </summary>
	[Serializable]
	public partial class Golf_Coupons
	{
		public Golf_Coupons()
		{}
		#region Model
		private int _id;
		private bool _couponstype;
		private string _couponsnumber;
		private string _couponspassword;
		private decimal _couponsfacevalue;
		private bool _isrestriction;
		private string _couponsrestriction;
		private int _couponsstate;
		private DateTime? _userservicetime;
		private DateTime _pastduetime;
		private int _userid;
		private int _userorderid;
		private string _userordernumber;
		private DateTime _createtime= DateTime.Now;
		/// <summary>
		/// id
		/// </summary>
		public int Id
		{
			set{ _id=value;}
			get{return _id;}
		}
		/// <summary>
		/// 优惠券类型 0纸质 1电子
		/// </summary>
		public bool CouponsType
		{
			set{ _couponstype=value;}
			get{return _couponstype;}
		}
		/// <summary>
		/// 优惠券编号
		/// </summary>
		public string CouponsNumber
		{
			set{ _couponsnumber=value;}
			get{return _couponsnumber;}
		}
		/// <summary>
		/// 兑换密码
		/// </summary>
		public string CouponsPassWord
		{
			set{ _couponspassword=value;}
			get{return _couponspassword;}
		}
		/// <summary>
		/// 优惠券面值
		/// </summary>
		public decimal CouponsFacevalue
		{
			set{ _couponsfacevalue=value;}
			get{return _couponsfacevalue;}
		}
		/// <summary>
		/// 是否限制使用 1是 0否
		/// </summary>
		public bool IsRestriction
		{
			set{ _isrestriction=value;}
			get{return _isrestriction;}
		}
		/// <summary>
		/// 优惠券限制原因
		/// </summary>
		public string CouponsRestriction
		{
			set{ _couponsrestriction=value;}
			get{return _couponsrestriction;}
		}
		/// <summary>
		/// 优惠券状态 1未发行,2已发行3未使用,4已使用5未过期,6已过期
		/// </summary>
		public int CouponsState
		{
			set{ _couponsstate=value;}
			get{return _couponsstate;}
		}
		/// <summary>
		/// 会员使用时间
		/// </summary>
		public DateTime? UserServiceTime
		{
			set{ _userservicetime=value;}
			get{return _userservicetime;}
		}
		/// <summary>
		/// 过期时间
		/// </summary>
		public DateTime PastdueTime
		{
			set{ _pastduetime=value;}
			get{return _pastduetime;}
		}
		/// <summary>
		/// 会员用户id Golf_User
		/// </summary>
		public int UserId
		{
			set{ _userid=value;}
			get{return _userid;}
		}
		/// <summary>
		/// 会员订单id	涉及订单id
		/// </summary>
		public int UserOrderId
		{
			set{ _userorderid=value;}
			get{return _userorderid;}
		}
		/// <summary>
		/// 会员订单号	涉及订单号
		/// </summary>
		public string UserOrderNumber
		{
			set{ _userordernumber=value;}
			get{return _userordernumber;}
		}
		/// <summary>
		/// 创建时间
		/// </summary>
		public DateTime CreateTime
		{
			set{ _createtime=value;}
			get{return _createtime;}
		}
		#endregion Model

	}
}

